#define _CRT_SECURE_NO_WARNINGS
#include"Heap.h"

void Test()
{
	int arr[] = { 9,5,6,3,2,1,4,7,8 };
	Heap hp;
	HeapInit(&hp);
	int len = sizeof(arr) / sizeof(arr[0]);
	for (int i = 0; i < len; i++)
	{
		HeapPush(&hp, arr[i]);
	}

	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	HeapDestory(&hp);
}
int main()
{
	Test();
	return 0;
}